package com.kr.redeye.project;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.kr.redeye.common.dao.CommonDAO;
import com.kr.redeye.dto.ProjectMemberTableDto;
import com.kr.redeye.dto.ProjectTableDto;

@Repository("projectDao")
public class ProjectDao  extends CommonDAO {
	
	public int insert(ProjectTableDto param) {
		return (Integer)getSqlMapClientTemplate().insert("project.insert", param);			
	}
	public int getProjectIDX(ProjectTableDto param){
		return (Integer)getSqlMapClientTemplate().queryForObject("project.getProjectIDX", param);
	}
	
	public int insertProjectMember(ProjectMemberTableDto param){
		return (Integer)getSqlMapClientTemplate().insert("project.projectMemberInsert", param);
	}
	@SuppressWarnings("unchecked")
	public List<HashMap<String, String>> getList(ProjectTableDto param) {
		return (List<HashMap<String, String>>)getSqlMapClientTemplate().queryForList("project.getList", param);
	}
	
	
}
